"use strict";
cc._RF.push(module, '0fbfeXlJnlCNotkQddUtR0t', 'block');
// script/star_project/game/block.js

"use strict";

cc.Class({
  "extends": cc.Component,
  properties: {
    spf_block: {
      type: [cc.SpriteFrame],
      "default": []
    }
  },
  // LIFE-CYCLE CALLBACKS:
  onLoad: function onLoad() {
    //锤子🔨特效
    var isChuiZi = false;
  },
  init: function init(_type) {
    this.blockType = _type;
    this.star_isdestory = false;
    this.node.getComponent(cc.Sprite).spriteFrame = this.spf_block[this.blockType];
  },
  start: function start() {},
  set_IsChuiZZi: function set_IsChuiZZi(iscuizi) {
    this.isChuiZi = iscuizi;

    if (this.isChuiZi) {
      this.node.getChildByName("block_select").active = true;
    } else {
      this.node.getChildByName("block_select").active = false;
    }
  },
  get_IsChuiZZi: function get_IsChuiZZi() {
    return this.isChuiZi;
  } // update (dt) {},

});

cc._RF.pop();